export const getCertificatePainter = (it) => {
	let u1 = it.certificate
	let u2 = it.chapter
	return {
		css: {
			// 根节点若无尺寸，自动获取父级节点
			width: '1131rpx',
			height: '1600rpx',
			position: "relative",
		},
		views: [
			//底图
			{
				type: 'image',
				src: u1,
				css: {
					width: '100%',
					height: '100%',
				}
			},
			//编号
			{
				type: "text",
				css: {
					width: "198rpx",
					height: "47rpx",
					top: "570rpx",
					left: "505rpx",
					position: "absolute",
					zIndex: "9",
					//background: 'rgba(0,0,0,0.5)',
					textAlign: 'left',
					fontSize: '32rpx',
					color: '#af0505'
				},	
				text: it.code
			},
			//姓名
			{
				type: "text",
				css: {
					width: "210rpx",
					height: "45rpx",
					top: "680rpx",
					left: "345rpx",
					position: "absolute",
					zIndex: "9",
					//background: 'rgba(0,0,0,0.5)',
					textAlign: 'left',
					fontSize: '30rpx',
					color: '#000',
					fontWeight: '500'
				},	
				text: it.nickname
			},
			//授权时间
			{
				type: "text",
				css: {
					width: "320rpx",
					height: "38rpx",
					bottom: "240rpx",
					left: "643rpx",
					position: "absolute",
					zIndex: "9",
					//background: 'rgba(0,0,0,0.5)',
					textAlign: 'left',
					fontSize: '28rpx',
					color: '#000'
				},	
				text: it.start_time
			},
			//公章
			{
				type: 'image',
				src: u2,
				css: {
					width: "260rpx",
					height: "260rpx",
					bottom: "165rpx",
					left: "650rpx",
					position: "absolute",
					zIndex: "10",
				}
			},
		]
	}
}